:root {
    --side-bar-bg-color: #fff;
    --control-text-color: #777;
    --select-text-bg-color: #ffafa3;
    --active-file-text-color: #262626;
    --active-file-border-color: #f22f27;
    /* --active-file-bg-color: #fff3f0; */
    --primary-color: #f22f27;
    /* 中性色 */
    --mid-1: #ffffff;
    --mid-2: #fafafa;
    --mid-3: #f5f5f5;
    --mid-4: #f0f0f0;
    --mid-5: #d9d9d9;
    --mid-6: #bfbfbf;
    --mid-7: #8c8c8c;
    --mid-8: #595959;
    --mid-9: #434343;
    --mid-10: #262626;
    --mid-11: #1f1f1f;
    --mid-12: #141414;
    --mid-13: #000000;
    /* 主题色 */
    --main-1: #fff3f0;
    --main-2: #ffd4cc;
    --main-3: #ffafa3;
    --main-4: #ff887a;
    --main-5: #ff5d52;
    --main-6: #f22f27;
    --main-7: #cc1616;
    --main-8: #a60a0f;
    --main-9: #80010a;
    --main-10: #590009;
}

#article {
    font-size: 17px;
    line-height: 1.8rem;
    letter-spacing: 0;
    margin: 0;
    overflow-x: hidden;
}

.article-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 30px 160px;
}

.article-content p {
    line-height: 1.8rem;
    word-spacing: .05rem;
    color: var(--mid-13);
}

.article-content > ul:first-child,
.article-content > ol:first-child {
    margin-top: 30px;
}

#article > *:first-child {
    margin-top: 0 !important;
}

#article > *:last-child {
    margin-bottom: 0 !important;
}

.article-content a {
    border-bottom: 1px solid blue;
    color: blue;
    text-decoration: none;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    position: relative;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.4;
    cursor: text;
}

.article-content h1 tt,
.article-content h1 code {
    font-size: inherit !important;
}

.article-content h2 tt,
.article-content h2 code {
    font-size: inherit !important;
}

.article-content h3 tt,
.article-content h3 code {
    font-size: inherit !important;
}

.article-content h4 tt,
.article-content h4 code {
    font-size: inherit !important;
}

.article-content h5 tt,
.article-content h5 code {
    font-size: inherit !important;
}

.article-content h6 tt,
.article-content h6 code {
    font-size: inherit !important;
}

.article-content h2 a,
.article-content h3 a {
    color: #34495e;
}

.article-content h1 {
    text-align: center;
    padding-bottom: 0.3em;
    font-size: 2.2em;
    line-height: 1.2;
    margin: 2.4em auto 1.2em;
    color: var(--main-10);
}

.article-content h1:after {
    content: '';
    display: block;
    margin: 0.2em auto 0;
    width: 100px;
    height: 2px;
    border-bottom: 2px solid var(--main-6);
}

.article-content h2 {
    margin: 2em auto 1.4em;
    line-height: 1.4;
    font-size: 1.8em;
    border-bottom: 1px solid var(--main-6);
}

.article-content h2::before {
    content: '# ' !important;
    color: #f22f27;
}

.article-content h3 {
    font-size: 1.4em;
    line-height: 1.43;
    margin: 1.6em auto 1.2em;
    padding-left: 9px;
    border-left: 5px solid #f22f27;
}

.article-content h4 {
    margin-top: 1.3em;
    font-size: 1.2em;
    padding-left: 6px;
    padding-right: 6px;
    display: inline-block;
    border: 1px solid var(--main-6);
    border-top: 4px solid var(--main-6);
}

.article-content h5::before,
.article-content h6::before {
    position: absolute;
    right: calc(100% + .75em);
    top: 0;
    color: #5b5b5b;
    font-size: 0.8rem;
    font-weight: bold;
    font-variant: 'small-caps';
    white-space: nowrap;
    /* 文本强制不换行 */
    border: 0;
}

.article-content h5 {
    /* margin-left: 2em; */
    font-size: 1rem;
}

.article-content h6 {
    /* margin-left: 2.5em; */
    font-size: 1rem;
}

.article-content h5::before {
    content: 'H5';
    top: 0.18rem;
}

.article-content h6::before {
    content: 'H6';
    top: 0.18rem;
}

.article-content p,
.article-content blockquote,
.article-content ul,
.article-content ol,
.article-content dl,
.article-content table {
    margin: 0.8em 0;
}

.article-content li > ol,
.article-content li > ul {
    margin: 0 0;
}

.article-content hr {
    height: 2px;
    padding: 0;
    margin: 16px 0;
    background-color: #e7e7e7;
    border: 0 none;
    overflow: hidden;
    box-sizing: content-box;
}

#article > h2:first-child {
    margin-top: 0;
    padding-top: 0;
}

#article > h1:first-child {
    margin-top: 0;
    padding-top: 0;
}

#article > h1:first-child + h2 {
    margin-top: 0;
    padding-top: 0;
}

#article > h3:first-child,
#article > h4:first-child,
#article > h5:first-child,
#article > h6:first-child {
    margin-top: 0;
    padding-top: 0;
}

.article-content a:first-child h1,
.article-content a:first-child h2,
.article-content a:first-child h3,
.article-content a:first-child h4,
.article-content a:first-child h5,
.article-content a:first-child h6 {
    margin-top: 0;
    padding-top: 0;
}

.article-content h1 p,
.article-content h2 p,
.article-content h3 p,
.article-content h4 p,
.article-content h5 p,
.article-content h6 p {
    margin-top: 0;
}

.article-content ol,
.article-content ul {
    padding-left: 25px;
    margin: .5rem 0;
}

.article-content ol > li,
.article-content ul > li {
    font-weight: normal;
    /*color: #db4d52;
    font-weight: bold;*/
}

.article-content ol > li > *,
.article-content ul > li > * {
    font-weight: normal;
}

.article-content ol > li > *:not(ol):not(ul),
.article-content ul > li > *:not(ol):not(ul) {
    padding-left: .25rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content blockquote {
    border-left: 4px solid rgb(239, 112, 96);
    padding: 10px 15px;
    color: #3f3f3f;
    background-color: #fff9f9;
}

.article-content table {
    padding: 0;
    word-break: initial;
}

.article-content table tr {
    border-top: 1px solid var(--main-6);
    margin: 0;
    padding: 0;
}

.article-content table tr:nth-child(2n),
.article-content thead {
    background-color: #fafafa;
}

.article-content table tr th {
    font-weight: bold;
    border: 1px solid var(--main-6);
    border-bottom: 0;
    text-align: left;
    margin: 0;
    padding: 6px 13px;
}

.article-content table tr td {
    border: 1px solid var(--main-6);
    text-align: left;
    margin: 0;
    padding: 6px 13px;
}

.article-content table tr th:first-child,
.article-content table tr td:first-child {
    margin-top: 0;
}

.article-content table tr th:last-child,
.article-content table tr td:last-child {
    margin-bottom: 0;
}

.article-content strong {
    padding: 0.1em;
    color: #dc3545;
}

.article-content em {
    padding: 0 2px 0 2px;
    font-style: normal;
    color: #ff3502;
}

.article-content pre {
    display: flow-root;
    position: relative;
    white-space: pre-wrap;
}

.article-content pre code {
    display: block;
    border-radius: 2px;
    font-family: 'Source Code Pro';
    font-size: 0.92rem;
    color: #33AAee;
    margin-left: 3px;
    margin-right: 3px;
    margin-bottom: 3px;
}

.article-content code {
    border-radius: 2px;
    font-family: 'Source Code Pro';
    font-size: 1.1rem;
    color: #1211ee;
    padding-bottom: 2px;
}

.article-content tt {
    margin: 0 2px;
}

.article-content del {
    padding: 1px 2px;
}

.article-content > h3:before {
    left: -1.5625rem;
    top: .375rem;
}

.article-content > h4:before {
    left: -1.5625rem;
    top: .285714286rem;
}

.article-content > h5:before {
    left: -1.5625rem;
    top: .285714286rem;
}

.article-content > h6:before {
    left: -1.5625rem;
    top: .285714286rem;
}

.article-content figure {
    text-align: center;
}

.article-content figure img {
    vertical-align: center;
}

.article-content .mermaid {
    text-align: center;
}

.article-content span.linenos {
    color: #EEBB32;
}